Form 5 Mathematics Bab 2: Matrices
A matrix is a rectangular array of numbers arranged in rows and columns, enclosed in brackets $[ ]$ or $( )$.
The order (or dimension) of a matrix with $m$ rows and $n$ columns is written as $m \times n$ (read as "$m$ by $n$").
Matrix $A$ is equal to matrix $B$ ($A = B$) if and only if:
Matrices can only be added or subtracted if they have the same order. The operation is performed on corresponding elements.
$$\begin{pmatrix} a & b \\ c & d \end{pmatrix} \pm \begin{pmatrix} e & f \\ g & h \end{pmatrix} = \begin{pmatrix} a \pm e & b \pm f \\ c \pm g & d \pm h \end{pmatrix}$$Multiplying a matrix by a scalar constant $k$ multiplies every individual element in the matrix by $k$:
$$k \begin{pmatrix} a & b \\ c & d \end{pmatrix} = \begin{pmatrix} ka & kb \\ kc & kd \end{pmatrix}$$Two matrices $A$ (order $m \times n$) and $B$ (order $p \times q$) can be multiplied to form $AB$ if and only if $n = p$ (the number of columns in $A$ equals the number of rows in $B$). The resulting matrix will have the order $m \times q$.
$$\begin{pmatrix} a & b \\ c & d \end{pmatrix} \begin{pmatrix} e & f \\ g & h \end{pmatrix} = \begin{pmatrix} ae + bg & af + bh \\ ce + dg & cf + dh \end{pmatrix}$$A square matrix with elements $1$ along the main diagonal and $0$ elsewhere. For any square matrix $A$, $AI = IA = A$.
$$I_2 = \begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix}, \quad I_3 = \begin{pmatrix} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \end{pmatrix}$$If $A$ is a square matrix and there exists a matrix $A^{-1}$ such that $A A^{-1} = A^{-1} A = I$, then $A^{-1}$ is the inverse matrix of $A$.
For a $2 \times 2$ matrix $A = \begin{pmatrix} a & b \\ c & d \end{pmatrix}$:
A system of simultaneous equations:
$$\begin{aligned} ax + by &= p \\ cx + dy &= q \end{aligned}$$can be expressed in matrix equation form $AX = B$ as:
$$\begin{pmatrix} a & b \\ c & d \end{pmatrix} \begin{pmatrix} x \\ y \end{pmatrix} = \begin{pmatrix} p \\ q \end{pmatrix}$$To solve for $X = \begin{pmatrix} x \\ y \end{pmatrix}$, multiply both sides by $A^{-1}$ from the left:
$$\begin{pmatrix} x \\ y \end{pmatrix} = \frac{1}{ad - bc} \begin{pmatrix} d & -b \\ -c & a \end{pmatrix} \begin{pmatrix} p \\ q \end{pmatrix}$$